import apiClient from './client';

// 获取用户总数
export const getUserCount = async (): Promise<{ users: number }> => {
  const response = await apiClient.get('/u/v1/user/count');
  return response.data;
};

// 获取语种总数
export const getLanguageCount = async (): Promise<{ lang: number }> => {
  const response = await apiClient.get('/lan/v1/languages/count');
  return response.data;
};

// 获取组件总数
export const getElementCount = async (): Promise<{ element: number }> => {
  const response = await apiClient.get('/lan/v1/element/count');
  return response.data;
};
